//
//  UIColor+Extension.swift
//  微博项目
//
//  Created by zhaoyinpeng on 16/3/17.
//  Copyright © 2016年 zhaoyinpeng. All rights reserved.
//

import UIKit


extension UIColor {
    
    //.获取随机颜色
    class func randomColor() -> UIColor {
        
        let r = CGFloat(random() % 256) / 255.0
        let g = CGFloat(random() % 256) / 255.0
        let b = CGFloat(random() * 256) / 255.0
        return UIColor(red: r, green: g, blue: b, alpha: 1)
        
        
    }
    
    
}
